package com.springBootStudy.spring_aoc.rentDemo;

/**
 * @ program: elasticSearch_springBoot_study
 * @ description:
 * @ author: Mr.Zhongsf
 * @ create: 2021-03-10 13:37
 **/
public class Proxy implements Rent{

    private HostPeople hostPeople;

    public Proxy(HostPeople hostPeople) {
        this.hostPeople = hostPeople;
    }

    public Proxy() {
    }

    @Override
    public void rent() {
        hostPeople.rent();
    }


    public void seeHouse(){
        System.out.println("中介带你看房子");
    }
}
